package indi.jp.project.business.jingying.dao;

import indi.jp.project.business.jingying.pojo.po.ActivityPlanPO;
import indi.jp.project.business.jingying.pojo.query.ActivityPlanQuery;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

/**
 * 经营活动策划DAO
 *
 * @author jiangping
 * @date 2022/5/10
 */
@Mapper
public interface ActivityPlanDAO {

    List<ActivityPlanPO> queryList(ActivityPlanQuery query) throws SQLException;

    int queryCount(ActivityPlanQuery query) throws SQLException;

    int insert(ActivityPlanPO activityPlanPO) throws SQLException;

    int update(ActivityPlanPO activityPlanPO) throws SQLException;

    ActivityPlanPO findById(String id) throws SQLException;

    int deleteById(String id) throws SQLException;
}
